From: Adel Gadllah Date: Mon, 24 Jan 2011 21:56:23 +0000 (+0100) Subject: recorder: Call cairo_surface_mark_dirty on the cursor surface X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9193 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=361a115729d43edabeca691faccb99fe372f17f7;p=gnome-shell.git recorder: Call cairo_surface_mark_dirty on the cursor surface Cairo surfaces have to be marked dirty after directly accessing them. This fixes the problem of the cursor not being in the recordings. --- diff --git a/src/shell-recorder.c b/src/shell-recorder.c index a1c626b41..6f3a6ea37 100644 --- a/src/shell-recorder.c +++ b/src/shell-recorder.c @@ -412,6 +412,8 @@ recorder_fetch_cursor_image (ShellRecorder *recorder) for (i = 0; i < cursor_image->height; i++) for (j = 0; j < cursor_image->width; j++) *(guint32 *)(data + i * stride + 4 * j) = cursor_image->pixels[i * cursor_image->width + j]; + + cairo_surface_mark_dirty (recorder->cursor_image); } /* Overlay the cursor image on the frame. We draw the cursor image